{{set . "title" "Home"}}

{{template "header.html" .}}

<div class="container">

    <!--shortcut-->
    {{template "application/nav.html" .}}

    {{if .f}}
	    <div class="container">
			<div class="row">
				<form class="form-horizontal" action="">
					<fieldset>

						<!-- Form Name -->
						<legend>填写申请信息</legend>

						<!-- 商户运营者-->
						<div class="form-group">
						  <label class="col-md-4 control-label" for="requestName">商户运营者</label>  
						  <div class="col-md-4">
						  	<p class="form-control-static">{{.user.Name}}</p>
						  </div>
						</div>

						<!-- 运营者电话-->
						<div class="form-group">
						  <label class="col-md-4 control-label" for="yyz-tel">运营者电话</label>  
						  <div class="col-md-5">
						  <input id="yyz-tel" name="yyz-tel" placeholder="{{.user.Tel}}" class="form-control input-md" required="" type="text">
						  </div>
						</div>

						<!-- 商户名称 -->
						<div class="form-group">
						  <label class="col-md-4 control-label" for="mcname">商户名称</label>
						  <div class="col-md-5">
						    <input id="mcname" name="mcname" placeholder="商户名称" class="form-control input-md" required="" type="text">
						  </div>
						</div>


						<!-- 地址-->
						<div class="form-group">
						  <label class="col-md-4 control-label" for="mc_addr">商户地址</label>  
						  <div class="col-md-5">
						  <input id="mc_addr" name="mc_addr" placeholder="商户地址" class="form-control input-md" type="text">
						  </div>
						</div>


						<!-- 主营 -->
						<div class="form-group">
						  <label class="col-md-4 control-label" for="main-p">主营商品</label>
						  <div class="col-md-5">                     
						    <textarea class="form-control" id="main-p" name="main-p" placeholder="主营商品" ></textarea>
						  </div>
						</div>

						<!-- 客服电话 -->
						<div class="form-group">
						  <label class="col-md-4 control-label" for="kf-tel">客服电话</label>  
						  <div class="col-md-5">
						  <input id="kf-tel" name="kf-tel" placeholder="客服电话" class="form-control input-md" type="text">
						  </div>
						</div>

						<!-- 提交申请 -->
						<div class="form-group">
						  <label class="col-md-4 control-label" for="submit"></label>
						  <div class="col-md-4">
						    <button id="submit" name="submit" class="btn btn-default" value="req">提交申请</button>
						  </div>
						</div>

					</fieldset>
				</form>
			</div> <!-- end row -->
		</div>  <!-- end container -->
    {{else}}
    	<!-- Form Name -->
		<legend>{{.text}}</legend>
    {{end}}

    

</div>


{{template "footer.html" .}}